package com.cy.ppj.dao.mapper.product;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cy.ppj.model.domian.product.ProductCity;

import tk.mybatis.mapper.common.BaseMapper;

@Mapper
public interface ProductCityMapper extends BaseMapper<ProductCity>{

	void insertBatchWhenCityExist(@Param("productId") Long productId, @Param("cityIds") Long[] cityIds);

    void deleteBatchWhenCityNotIn(@Param("productId") Long productId, @Param("cityIds") Long[] cityIds);
}
